﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Jzy.UI.Web.Areas.Site.Models.DesignModel>" %>
<%@ Import Namespace="Jzy.UI.Web.Areas.Site.BaseCode" %>

<script language="javascript" type="text/javascript">
    function switchMenu(obj)
    {
        obj.className = "con_title_cn title_sel";
        if (obj.id == "tab_show_design")
        {
            document.getElementById("tab_show_case").className = "con_title_cn title_nor";
            document.getElementById("design").style.display = "block";
            document.getElementById("case").style.display = "none";
            document.getElementById("pic_more").href = "<%=SitePath.VirtualRoot %>Article/PictureList/4/";
        }
        else
        {
            document.getElementById("tab_show_design").className = "con_title_cn title_nor";
            document.getElementById("design").style.display = "none";
            document.getElementById("case").style.display = "block";
            document.getElementById("pic_more").href = "<%=SitePath.VirtualRoot %>Article/PictureList/3/";
        }
    }
</script>

<div class="content_nav_about content_nav_c">
    <div class="content_nav_about_n content_nav_c_n">
        <div class="con_title_left con_title_case">
            <div class="con_title_cn title_sel" id="tab_show_case" onmouseover="switchMenu(this)">
                <a href="<%=SitePath.VirtualRoot %>Article/PictureList/3/">成功案例</a></div>
            <div class="con_title_cn title_nor" id="tab_show_design" onmouseover="switchMenu(this)">
                <a href="<%=SitePath.VirtualRoot %>Article/PictureList/4/">设计展示</a></div>
            <div class="con_title_button">
                <a id="pic_more" href="<%=SitePath.VirtualRoot %>Article/PictureList/3/">
                    <img src="<%= SitePath.Image%>more.gif" width="58" height="17" /></a></div>
                    
        </div>
        <div class="con_con_left" id="case">
            <%foreach (Cms.Entity.Article.ArticleInfo info in this.Model.List3)
              { %>
                    <div class="con_con_left_citem">
                        <div class="c_img">
                            <a id='lnk_<%=info.ID %>' href='<%= info.Source == "" ? info.BigImageAbsPath : info.Source %>' target="_blank">
                                <script type="text/javascript">
                                    loadImage('<%=info.SmallImageAbsPath%>', 'lnk_<%=info.ID%>', 142, 142, 150);
                                </script>

                            </a>
                        </div>
                        <div class="c_info">
                            <a href='<%=info.Source == "" ? info.BigImageAbsPath : info.Source%>' target="_blank"><%=info.Name%></a></div>
                    </div>
               <%} %>
        </div>
        <div class="con_con_left" id="design" style="display: none">
            <%foreach (Cms.Entity.Article.ArticleInfo info in this.Model.List4)
              { %>
                    <div class="con_con_left_citem">
                        <div class="c_img">
                            <a id='lnk_<%=info.ID %>' href='<%=info.Source == "" ? info.BigImageAbsPath : info.Source %>' target="_blank">
                                <script type="text/javascript">
                                    loadImage('<%=info.SmallImageAbsPath%>', 'lnk_<%=info.ID%>', 142, 142, 150);
                               </script></a></div>
                        <div class="c_info">
                             <a href='<%=info.Source == "" ? info.BigImageAbsPath : info.Source%>' target="_blank"><%=info.Name%></a></div>
                    </div>
               <%} %>
        </div>
    </div>
</div>
